package code.lewdy.lottery;

import java.util.HashMap;
import java.util.Map;

/**所有彩种每天期号数
 * @author Administrator
 *
 */
public class LotteryRewardCount {
	private static Map map = new HashMap<String, Integer>();
	private static boolean init;
	
	private static void init(){
		if(init)
			return;
		map.put(LotteryConstant.LOTTERY_CHONGQING_NAME, 120);
		map.put(LotteryConstant.LOTTERY_JIANGXI_NAME, 120);
		map.put(LotteryConstant.LOTTERY_TIANJIN_NAME, 120);
		map.put(LotteryConstant.LOTTERY_XINJIANG_NAME, 120);
		map.put(LotteryConstant.LOTTERY_HUNANSSC_NAME, 120);
		map.put(LotteryConstant.LOTTERY_3D_NAME, 366);
		map.put(LotteryConstant.LOTTERY_P3_NAME, 366);
		init = true;
	}
	
	public static int getLotteryCount(String lotteryName){
		if(!init)
			init();
		if(map.get(lotteryName) != null){
			return (Integer)map.get(lotteryName);
		}else{
			return 200;
		}
	}
	
	public static void main(String[] args) {
		init();
		System.out.println(map.get(LotteryConstant.LOTTERY_CHONGQING_NAME));
	}
}
